import pluginJs from '@eslint/js'
import tseslint from 'typescript-eslint'
import pluginVue from 'eslint-plugin-vue'


export default [
    pluginJs.configs.recommended,
    ...tseslint.configs.recommended,
    ...pluginVue.configs['flat/recommended'],
    {
        languageOptions: {
            parserOptions: {
                parser: tseslint.parser,
            },
        },
        rules: {
            '@typescript-eslint/no-explicit-any': ['off'],
            'vue/multi-word-component-names': ['off'],
            'semi': [1, 'never'],
            'indent': ['error', 4],
            'vue/html-indent': ['error', 4],
            'quotes': ['error', 'single'],
            'vue/singleline-html-element-content-newline': ['off'],
            'vue/html-closing-bracket-newline': ['off'],
            'vue/first-attribute-linebreak': ['off'],
            'vue/max-attributes-per-line': ['off'],
            '@typescript-eslint/ban-types': 'off',
            '@typescript-eslint/no-unused-vars': 'off'
        }
    }
]